﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace csharp_Movies_315.Models
{
    public class Todo
    {
        public int TodoId { get; set; } // guid
        public string Task { get; set; } // thing that needs to get done
        public bool IsCompleted { get; set; } // if the Task has been completed
    }

    /// Index page VM
    public class TodoHomeVm
    {
        public string Greeting { get; set; } // hello world
        public List<Todo> Todos { get; set; } // list of Objects/Todo
    }
    /// Create page VM
    public class TodoCreateVm
    {
        // the ID will be generated automically
        // the IsCompleted be initially set to false  
        public string Task { get; set; }
    }
    // Update page VM
    public class TodoUpdateVm
    {
        public Todo TodoUpdate { get; set; }

    }

}